﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TGComacAddin
{
    /// <summary>
    /// TGUserWindow.xaml 的交互逻辑
    /// </summary>
    public partial class TGUserWindow : Window
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public TGUserWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 步数
        /// </summary>
        public int _step { get; set; } = 0;
        //public const int STEP_ONE   = 1;
        //public const int STEP_TWO   = 2;
        //public const int STEP_THREE = 3;

        #region 事件
        /// <summary>
        /// button按钮事件-拉伸
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lashen_Click(object sender, RoutedEventArgs e)
        {
            this.lashen.Visibility = Visibility.Hidden;
            this.Visibility = Visibility.Hidden;
            this.dakong.Visibility = Visibility.Visible;
            _step++;
        }

        /// <summary>
        /// button按钮事件-打孔
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dakong_Click(object sender, RoutedEventArgs e)
        {
            this.dakong.Visibility = Visibility.Hidden;
            this.Visibility = Visibility.Hidden;
            this.ok.Visibility = Visibility.Visible;
            _step++;
        }

        /// <summary>
        /// 执行命令结束的事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ok_Click(object sender, RoutedEventArgs e)
        {
            _step = 3;
            this.Close();
        }
        #endregion 事件
    }
}
